package com.yutian.springbootwebflux.base;

/**
 * 对外错误码枚举
 * @author chenkang
 * @date 2019-06-11
 */
@Deprecated
public enum ResultCodeEnum {

    //通用错误码（0-2000）begin
    //成功
    SUCCESS(0, "Success"),
    //服务器内部错误
    SERVER_ERROR(500, "SERVER_ERROR"),
    ;

    private int code;

    private String msg;

    ResultCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
